
class Animal {
    String name = "赛虎";
    public void funA() {
        System.out.println("Animal中的funA()");
    }
    public void funB() {
        System.out.println("Animal中的funB()");
    }
}
class Dog extends Animal {
    String name = "小米";
    public void funA() {
        System.out.println("Dog中的funA()");
    }
    public void funB() {
        System.out.println("Dog中的funB()");
    }
    public void show() {
        System.out.println(super.name);
        super.funA();
        super.funB();
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.show();
    }
}
